@extends('layouts.app')

@section('content')
    <div class="container">
        <div class="row justify-content-center">
            <div class="col-md-8">
                <div class="card">
                    <div class="card-header">成功</div>

                    <div class="card-body">
                        <div class="row">
                            <p>您预定了：{{ $payinfo['from'] }} ~ {{ $payinfo['to'] }} 的 {{ $payinfo['type']->name }}</p>
                            <p>已支付：{{ $payinfo['price'] }}</p>
                        </div>
                        <div class="card-footer">
                            <div class="row">
                                <div class="col-auto">
                                    <a class="btn btn-success" href="{{ route('home') }}" role="button">返回首页</a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
